import request from '@/config/axios'

// 文章交互记录 VO
export interface ArticleInteractionVO {
  id: number // ID
}

// 文章交互记录 API
export const ArticleInteractionApi = {
  // 查询文章交互记录分页
  getArticleInteractionPage: async (params: any) => {
    return await request.get({ url: `/mzt/article-interaction/page`, params })
  },

  // 查询文章交互记录详情
  getArticleInteraction: async (id: number) => {
    return await request.get({ url: `/mzt/article-interaction/get?id=` + id })
  },

  // 新增文章交互记录
  createArticleInteraction: async (data: ArticleInteractionVO) => {
    return await request.post({ url: `/mzt/article-interaction/create`, data })
  },

  // 修改文章交互记录
  updateArticleInteraction: async (data: ArticleInteractionVO) => {
    return await request.put({ url: `/mzt/article-interaction/update`, data })
  },

  // 删除文章交互记录
  deleteArticleInteraction: async (id: number) => {
    return await request.delete({ url: `/mzt/article-interaction/delete?id=` + id })
  },

  // 导出文章交互记录 Excel
  exportArticleInteraction: async (params) => {
    return await request.download({ url: `/mzt/article-interaction/export-excel`, params })
  },
}